package org.jeecg.modules.manage.service.impl;

import org.jeecg.modules.manage.entity.CaishuiBill;
import org.jeecg.modules.manage.mapper.MCaishuiBillMapper;
import org.jeecg.modules.manage.service.IMCaishuiBillService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 开票记录
 * @Author: yfkj
 * @Date:   2023-02-23
 * @Version: V1.0
 */
@Service
public class MCaishuiBillServiceImpl extends ServiceImpl<MCaishuiBillMapper, CaishuiBill> implements IMCaishuiBillService {

    /**
     * 查询开票中金额
     * @param businessId
     * @param companyId
     * @return
     */
    @Override
    public double queryInAmount(String businessId, String companyId) {
        return this.baseMapper.queryInAmount(businessId, companyId);
    }

    /**
     * 查询已开票金额
     * @param businessId
     * @param companyId
     * @return
     */
    @Override
    public double queryAlreadyAmount(String businessId, String companyId) {
        return this.baseMapper.queryAlreadyAmount(businessId, companyId);
    }

}
